<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    {include file='Public:head_in' /}
</head>
<body>

<div class="tab-pane" id="tab-second">
    <form id="add_form" method="post" action="{:url('admin/shops/edit')}" class="form-horizontal">
        <div class="panel-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-md-3 control-label">商家名</label>
                        <div class="col-md-9">
                            <input name="name" type="text" class="form-control" value="{$list.name}"/>
                            <input name="id" type="hidden" class="form-control" value="{$list.id}"/>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <div class="col-md-3 control-label">开始时间</div>
                        <div class="col-md-9">
                            <input name="start_time" type="date" class="form-control"  value="{$list.start_time|date='Y-m-d',###}"/>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <div class="col-md-3 control-label">结束时间</div>
                        <div class="col-md-9">
                            <input name="end_time" type="date" class="form-control" value="{$list.end_time|date='Y-m-d',###}"/>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-md-3 control-label">商家分类</label>
                        <div class="col-md-9">
                            <select class="form-control select" name="pid">
                                {volist name="group_list" id="vo"}
                                <option {:is_selected($list.group_id,$vo.id)} value="{$vo.id}">
                                    {$vo.lefthtml}{$vo.name}
                                </option>
                                {/volist}
                            </select>
                        </div>
                    </div>

                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-md-3 control-label">描述</label>
                        <div class="col-md-9 col-xs-12">
                            <textarea name="business_scope" class="form-control" rows="5">{$list.business_scope}</textarea>
                        </div>
                    </div>

                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <div class="col-md-3 control-label">排序</div>
                        <div class="col-md-9">
                            <input name="sort" type="number" class="form-control"  value="{$list.sort}"/>
                        </div>
                    </div>

                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-xs-3 control-label">二维码</label>
                        <div class="col-xs-6">
                            <div class="gallery">
                                <a class="gallery-item"  href="javascript:void('')" title="Space picture 2" data-gallery>
                                    <div class="image" >
                                        <input value="{$list.qr_code}" hidden name="qr_code" type="text" id="inp">
                                        <img src="{:is_img($list.qr_code)}" alt="Space picture 2"/>
                                        <ul class="gallery-item-controls">
                                            <li onclick="upload_single('inp','qr_code')"><i class="fa fa-cloud-upload"></i></li>
                                            <li onclick="del_pic('inp')"><i class="fa fa-times"></i></li>
                                        </ul>
                                    </div>
                                </a>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-md-3  control-label">相册状态</label>
                        <div class="col-md-9">
                            <label class="switch">
                                <input name="status" type="checkbox" {eq name="list.status" value="1" }checked{/eq} value="1"/>
                                <span></span>
                            </label>
                            <span class="help-block">默认正常</span>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <div class="panel-footer">
            <button class="btn btn-info pull-right">保存修改<span class="fa fa-floppy-o fa-right"></span></button>
        </div>
    </form>
</div>
</body>
</html>